package com.cn.bulu.pojo;

import java.sql.Date;

/*
 * 经销商类
 */
public class Dealer {
	private Integer dealerId;//经销商ID
	private String phone;//手机号
	private String password;//密码
	private String name;//姓名
	private String referrer;//推荐人手机号
	private String storeName;//门店名称
	private String detailAddress;//门店地址
	private Double wallet;//钱包
	private Integer type;//类型:0一级 1二级
	private Double task;//任务销售金额
	private Integer recommend;//任务推荐客户数
	private String boundBank;//银行名称
	private String bankNumber;//银行卡号
	private String recordPassword;//提现密码
	private Integer status;//审核状态0正在审核 1审核通过 2审核未通过
	private Integer isDisable;//1停用 0正常 2未激活
	private Date join_date;//注册时间
	
			public Dealer(Builder builder){
				this.phone=builder.phone;
				this.password=builder.password;
				this.name=builder.name;
				this.referrer=builder.referrer;
				this.storeName=builder.storeName;
				this.detailAddress=builder.detailAddress;
				this.wallet=builder.wallet;
				this.type=builder.type;
				this.task=builder.task;
				this.recommend=builder.recommend;
				this.boundBank=builder.boundBank;
				this.bankNumber=builder.bankNumber;
				this.recordPassword=builder.recordPassword;
				this.status=builder.status;
				this.isDisable=builder.isDisable;
				this.join_date=builder.join_date;
			}
			public static class Builder{
				private String phone="";//手机号
				private String password="";//密码
				private String name="";//姓名
				private String referrer="";//推荐人手机号
				private String storeName="";//门店名称
				private String detailAddress="";//门店地址
				private Double wallet=0.00;//钱包
				private Integer type=0;//类型:0一级 1二级
				private Double task=0.00;//任务销售金额
				private Integer recommend=0;//任务推荐客户数
				private String boundBank="无";//银行名称
				private String bankNumber="无";//银行卡号
				private String recordPassword="";//提现密码
				private Integer status=0;//审核状态0正在审核 1审核通过 2审核未通过
				private Integer isDisable=0;//1停用 0正常 2未激活
				private Date join_date;//注册时间
				
				public Builder phone(String phone){
					this.phone=phone;
					return this;
				}
				public Builder password(String password){
					this.password=password;
					return this;
				}
				public Builder name(String name){
					this.name=name;
					return this;
				}
				public Builder referrer(String referrer){
					this.referrer=referrer;
					return this;
				}
				public Builder storeName(String storeName){
					this.storeName=storeName;
					return this;
				}
				public Builder detailAddress(String detailAddress){
					this.detailAddress=detailAddress;
					return this;
				}
				public Builder wallet(Double wallet){
					this.wallet=wallet;
					return this;
				}
				public Builder type(Integer type){
					this.type=type;
					return this;
				}
				
				public Builder task(Double task){
					this.task=task;
					return this;
				}
				
				public Builder recommend(Integer recommend){
					this.recommend=recommend;
					return this;
				}
				
				public Builder bankNumber(String bankNumber){
					this.bankNumber=bankNumber;
					return this;
				}
				
				public Builder boundBank(String boundBank){
					this.boundBank=boundBank;
					return this;
				}
				public Builder recordPassword(String recordPassword){
					this.recordPassword=recordPassword;
					return this;
				}
				public Builder status(Integer status){
					this.status=status;
					return this;
				}
				public Builder isDisable(Integer isDisable){
					this.isDisable=isDisable;
					return this;
				}
				public Builder join_date(Date join_date){
					this.join_date=join_date;
					return this;
				}
				public  Dealer buider(){
					 return new Dealer(this);
				 }
			}
	
	public String getBoundBank() {
		return boundBank;
	}
	public void setBoundBank(String boundBank) {
		this.boundBank = boundBank;
	}
	public String getBankNumber() {
		return bankNumber;
	}
	public void setBankNumber(String bankNumber) {
		this.bankNumber = bankNumber;
	}
	public String getRecordPassword() {
		return recordPassword;
	}
	public void setRecordPassword(String recordPassword) {
		this.recordPassword = recordPassword;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Integer getIsDisable() {
		return isDisable;
	}
	public void setIsDisable(Integer isDisable) {
		this.isDisable = isDisable;
	}
	public Date getJoin_date() {
		return join_date;
	}
	public void setJoin_date(Date join_date) {
		this.join_date = join_date;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Double getTask() {
		return task;
	}
	public void setTask(Double task) {
		this.task = task;
	}
	public Integer getRecommend() {
		return recommend;
	}
	public void setRecommend(Integer recommend) {
		this.recommend = recommend;
	}
	public Integer getDealerId() {
		return dealerId;
	}
	public void setDealerId(Integer dealerId) {
		this.dealerId = dealerId;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getReferrer() {
		return referrer;
	}
	public void setReferrer(String referrer) {
		this.referrer = referrer;
	}
	public String getStoreName() {
		return storeName;
	}
	public void setStoreName(String storeName) {
		this.storeName = storeName;
	}
	public String getDetailAddress() {
		return detailAddress;
	}
	public void setDetailAddress(String detailAddress) {
		this.detailAddress = detailAddress;
	}
	public Double getWallet() {
		return wallet;
	}
	public void setWallet(Double wallet) {
		this.wallet = wallet;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	
}
